<!DOCTYPE html>
<html>
<head>
	<title>getData</title>
</head>
<body>
	<h1>app5331-passport-client::getData</h1>


	<script type="text/javascript" src="./axios-0.21.1.js"></script>
	<script type="text/javascript">
		const service = axios.create({
			baseURL: 'http://sanctumspa1.laravel7120.cm/api/', // url = base url + request url
			withCredentials: true, // send cookies when cross-domain requests
			timeout: 5000 // request timeout
		})
		service.get('data/test001')
			.then(function (data) {
				console.log(arguments);
			})
			.catch(function () {
				console.log(arguments);
			});
	</script>

</body>
</html>
